<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
String path=request.getContextPath();
String basePath=request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title><s:text name="sys.app_title" /></title>
	<link rel="stylesheet" type="text/css" href="css/main.css"/>
	<script type="text/javascript">
function showtable(){
        var tableid='aaa';                //表格的id
        var overcolor='#fff7d9';        //鼠标经过颜色
        var color1='#FFFFFF';                //第一种颜色
        var color2='#fafafa';                //第二种颜色
        var tablename=document.getElementById(tableid)
        var tr=tablename.getElementsByTagName("tr")
        for(var i=1 ;i<tr.length;i++){
                tr[i].onmouseover=function(){
                        this.style.backgroundColor=overcolor;
                }
                tr[i].onmouseout=function(){
                        if(this.rowIndex%2==0){
                                this.style.backgroundColor=color1;
                        }else{
                                this.style.backgroundColor=color2;
                        }
                }
                if(i%2==0){
                        tr[i].className="color1";
                }else{
                        tr[i].className="color2";
                }
        }
}
</script>
</head>

<body onload="showtable()">
	<div class="mainContainer">
   	<div class="headerTitle">&nbsp;系统辅助管理>>&nbsp;操作日志管理</div>
        	<table class="gridTable" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td class="gridData">
	        			<table id="aaa" class="dataTable" border="0" cellpadding="0" cellspacing="1">
	          				<tr class="dataHeader">
	          				<!-- 数据表头 -->
					            <td width="10%">ID</td>
					            <td width="22%">操作人账号</td>
					            <td width="22%">操作人姓名</td>
					            <td width="24%">操作类容</td>
					            <td>操作时间</td>
							</tr>
							<!-- 数据 -->
	         				<s:iterator value="pagination.dataList" status="st">
							<tr style="height:25px;" align="center" bgcolor="#ffffff">
								<td><s:property value="#st.count"/></td>
								<td><s:property value="UserCode"/></td>
								<td><s:property value="UserName"/></td>
								<td><s:property value="Operatename"/></td>
								<td><s:date name="Operatedate" format="yyyy-MM-dd hh:mm:ss" /></td>
							</tr>
						</s:iterator>
						</table>
					</td>
				</tr>
				<tr class="dataPager">
					<td>
						<s:property value="pageLink" escapeHtml="false" />
					</td>
				</tr>
			</table>
        </div>
</body>
</html>